﻿<Window x:Class="UBConDemo.Views.Navigation.OutlookBar"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ubcr="http://schemas.ultimatebusinesscontrols.com/wpf/xaml/ribbon"
        xmlns:ubcn="http://schemas.ultimatebusinesscontrols.com/wpf/xaml/navigation"
        Title="OutlookBar"
        WindowState="Maximized">
    <DockPanel>
        <ubcn:OutlookBar x:Name="outlookBar"
                         SelectedIndex="0"
                         IsCompact="False"
                         AnimationsEnabled="{Binding Path=IsChecked, ElementName=animationsEnabled}"
                         IsDeferredDrag="{Binding Path=IsChecked, ElementName=deferredDrag}">
            <ubcn:OutlookBar.InnerContent>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <TextBlock 
                           HorizontalAlignment="Center"
                           VerticalAlignment="Center"
                           Width="300"
                           Height="300"
                           TextAlignment="Center"
                           FontSize="35"/>
                    <StackPanel Grid.Column="1">
                        <ubcr:RibbonToggleButton Size="Large"
						                    Image="pack://application:,,,/UBCon.RibbonDemo;component/images/paste32.png"
						                    Title="AnimationsEnabled"
						                    x:Name="animationsEnabled"/>
                        <ubcr:RibbonToggleButton Size="Large"
						                    Image="pack://application:,,,/UBCon.RibbonDemo;component/images/Open_16x16.png"
						                    Title="DeferredDrag"
						                    x:Name="deferredDrag"/>
                    </StackPanel>
                </Grid>
            </ubcn:OutlookBar.InnerContent>

            <ubcn:OutlookBarItem Title="Mail"
                                 Image="pack://application:,,,/UbConDemo;component/images/MailFile16.png">
                <ubcn:OutlookBarItem.InnerContent>
                    <TextBlock Text="Mail"  />
                </ubcn:OutlookBarItem.InnerContent>
                <ubcn:OutlookBarItem.DropDownContent>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <TextBlock Text="Hello world!" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        <TextBlock Text="Hello world!" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Grid>
                </ubcn:OutlookBarItem.DropDownContent>
                <ubcn:OutlookBarItem.NavigationItems>
                    <ubcn:NavigationItem Content="Inbox"
                                         Height="60"/>
                    <ubcn:NavigationItem Content="Sent items"
                                         Height="80"/>
                </ubcn:OutlookBarItem.NavigationItems>
            </ubcn:OutlookBarItem>
            <ubcn:OutlookBarItem Title="Calendar"
                                 Image="pack://application:,,,/UbConDemo;component/images/Calendar-Next.png">
                <ubcn:OutlookBarItem.InnerContent>
                    <Calendar />
                </ubcn:OutlookBarItem.InnerContent>
            </ubcn:OutlookBarItem>
            <ubcn:OutlookBarItem Title="Contacts"
                                 Image="pack://application:,,,/UbConDemo;component/images/Users.png">
                <ubcn:OutlookBarItem.InnerContent>
                    <TextBlock Text="Contacts"  />
                </ubcn:OutlookBarItem.InnerContent>
            </ubcn:OutlookBarItem>
            <ubcn:OutlookBarItem Title="Tasks"
                                 Image="pack://application:,,,/UbConDemo;component/images/Printer_48x48.png">
                <ubcn:OutlookBarItem.InnerContent>
                    <TextBlock Text="Tasks"  />
                </ubcn:OutlookBarItem.InnerContent>
            </ubcn:OutlookBarItem>
            <ubcn:OutlookBarItem Title="Shortcuts1"
                                 Image="pack://application:,,,/UbConDemo;component/images/home.png">
                <ubcn:OutlookBarItem.InnerContent>
                    <TextBlock Text="Shortcuts1"  />
                </ubcn:OutlookBarItem.InnerContent>
            </ubcn:OutlookBarItem>
            <ubcn:OutlookBarItem Title="Shortcuts2"
                                 Image="pack://application:,,,/UbConDemo;component/images/folder32.png">
                <ubcn:OutlookBarItem.InnerContent>
                    <TextBlock Text="Shortcuts2"  />
                </ubcn:OutlookBarItem.InnerContent>
            </ubcn:OutlookBarItem>
        </ubcn:OutlookBar>
    </DockPanel>
</Window>
